Search results
20 packages found
Throw an error (and allow to stop flow) if an async function takes more than a set duration
Set of methods allowing simplify work with promises in cycle such as: forEach, map, find, filter, reduce, while, transform. Besides there are methods for comfortable work with promises or asynchronous operations - all, retry, timeout.
- promise
- promises
- performance
- async
- await
- deferred
- deferreds
- future
- flow control
- fluent interface
- promise methods
- foreach
- reduce
- filter
- View more
Simple date parse util, throws error or returns null if date is invalid
An accumulator for only errors that tries to interrupt and throw an error if the storage is not empty.
Conditional promise catch handler
If X, return Y, else throw Z.
Enforce required parameters or options in ES6.
Assert a given string is a valid Github issue label name
Util to throw error if truthy is given
Throws something if it’s an Error; otherwise returns it.
Throw TypeError if not a value is array-like. The undefined value always evaluates to true.
Throw if environment variable cannot be taken.
Ensure environment variable exists. If not, throw to fail early.
An assertion method to check if a sync or async function throws and assert on error properties.
Function that returns a boolean indicating whether an exception was thrown or not
Ensure environment variable exists and convert to a number. If not, throw to fail early.
Throw if a document cannot be found
Replace in string pattern by variables. Throw error if variables is not string or number.
Get one or multiple environment variable or throw an error if undefined.